{include file="header.html"}
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
<div class="row">
 

{include file="ymdian_order/nav.html"}
<form method="get" action="{$appadmin}">
<input type="hidden" name="m" value="ymdian_order" />
<input type="hidden" name="a" value="default" />
<div class="mgb-10" >
订单号：<input type="text" name="orderno" value="{$smarty.get.orderno}" />
用户：<input type="text" name="nickname" value="{$smarty.get.nickname}" class="w100" />
状态：<select name="status" class="w100">
 <option value="-1">全部</option>
{foreach item=c key=k from=$order_status_list}
{if $k lt 99} <option value="{$k}" {if $smarty.get.status eq $k} selected="selected" {/if}>{$c}</option>
{/if}
{/foreach}
</select>

支付：<select name="paytype" class="w100">
<option value="">请选择</option>
 
<option value="hdfk" {if get('paytype') eq 'hdfk'} selected="selected"{/if}>货到付款</option>
<option value="wxpay" {if get('paytype') eq 'wxpay'} selected="selected"{/if}>微信支付</option>
<option value="alipay" {if get('paytype') eq 'alipay'} selected="selected"{/if}>支付宝支付</option>
<option value="unpay" {if get('paytype') eq 'unpay'} selected="selected"{/if}>未支付</option> 
</select>
 </div>
<div class="mgb-10" >
开始时间：<input type="text" name="start_time" value="{$smarty.get.start_time}"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
结束时间：<input type="text" name="end_time" value="{$smarty.get.end_time}"   onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />

 {get data=scs model=site_city fun=children(0)}
        <select name="sc_id">
        	<option value="0">全部楼栋</option>
            {foreach item=c from=$scs}
            <option value="{$c.sc_id}" {if get('sc_id') eq $c.sc_id} selected{/if}>{$c.title}</option>
            {if $c.child}
            
            {foreach item=cc from=$c.child}
            <option value="{$cc.sc_id}" {if get('sc_id') eq $cc.sc_id} selected{/if}>|--{$cc.title}</option>
            {/foreach}
            {/if}
            {/foreach}
        </select>

<input type="submit" value="搜索" class="btn btn-warning" />

<div class="rscount">总计：<span class="num">{$rscount}</span>个订单，总金额：￥<span class="num">{$total_money}</span>元，本页金额：￥<span class="num">{$page_total_money}</span></div>
<div class="clearfix"></div>
</div>
</form>
<table width="100%" class="table table-bordered">
<tr>
<td>ID</td>
<td>订单号</td>
<td>店铺</td>
<td>联系方式</td>
<td>下单时间</td>
<td>支付状况</td>
 
<td>价格</td>
<td>状态</td>
<td>操作</td>
</tr>
{foreach item=c from=$data}
<tr>
<td>{$c.order_id}</td>
<td>{$c.orderno}</td>
<td>{$c.shop_name}</td>
<td>{$c[address].truename}<br>
	{$c[address].telephone}  <br>{$c[address].p_c_t}  宿舍：{$c[address].sushe}
</td>
<td>{$c.dateline|date:m-d H:i}</td>
<td>{if $c.unpay}货到付款{else}{$order_ispay[$c.ispay]}{/if}</td>
 
<td>{$c.money}</td>
<td>{$order_status_list[$c.status]} {$c.whocancel}</td>
<td><a href="{$appadmin}?m=ymdian_order&a=show&order_id={$c.order_id}">查看</a></td>
</tr>
{/foreach}

</table>
{$pagelist}
</div>


{include file="footer.html"}